steam_file_exists(filename);
参数 | 描述 |
---|---|
filename | 要检查的文件的名称。 |
返回: 布尔值
With this function you can check to see if a file from the Steam
Cloud exists or not, with a return value of true if it
exists, or false otherwise.
if steam_file_exists("Save.txt")
{
save_str = steam_file_read("Save.txt");
}
The above code checks to see if a file exists on the Steam Cloud and if it does, it opens it and reads its contents into the variable "save_str".